package model.icmpv6;

import header.ICMPv6Defines;

import java.util.ArrayList;
import java.util.List;

public class SrcLLAOption extends ICMPv6Option {
	private int lladdress[];
	/*
	 *====================================
	 * Constructors
	 * ===================================
	 */
	public SrcLLAOption() {
		lladdress = new int[6];
	}
	
	public SrcLLAOption(int type, int length, int[] lladdress) {
		super(type, length);
		this.lladdress = lladdress;
	}

	@Override
	public List<Integer> makeOption() {
		List<Integer> retList = new ArrayList<>();
		retList = super.makeOption();
		for(int i : lladdress){
			retList.add(i);
		}
		return retList;
	}
	
	
}
